package com.franklin.ideaplugin.api.beans;

import com.intellij.psi.PsiTypeParameter;

/**
 * 泛型
 *
 * @author Ye Junhui
 * @since 2023/1/13 0013
 */
public class GenericParameter {

    private PsiTypeParameter psiTypeParameter;

    /**
     * 泛型名称
     */
    private String name;

    /**
     * 泛型实际类型
     */
    private String actualClassName;

    /**
     * 泛型类
     */
    private GenericClass genericClass;

    public GenericParameter(PsiTypeParameter psiTypeParameter, String name, String actualClassName, GenericClass genericClass) {
        this.psiTypeParameter = psiTypeParameter;
        this.name = name;
        this.actualClassName = actualClassName;
        this.genericClass = genericClass;
    }

    public String getName() {
        return name;
    }

    public String getActualClassName() {
        return actualClassName;
    }

    public PsiTypeParameter getPsiTypeParameter() {
        return psiTypeParameter;
    }

    public GenericClass getGenericClass() {
        return genericClass;
    }
}
